﻿#region File Description
/*-----------------------------------------------------------------------------
 * Class: Rufus
 *
 * Rufus's special move (enacted through the space bar) is running...
 * ...poor little guy, can't do much.
 *
 * Notes:   Rufus extends the base class Character, so he can move right, left,
 *          and jump by using the left, right, up arrow keys.
 -------------------------------------------------------------------------------*/
#endregion

using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Audio;


namespace _2DProject
{
    class Rufus : Character
    {

        public Rufus(Game g, Vector2 pos)
            : base(g, pos, "rufus") // for further encapsulation, moved the character names to subclass constructors
        {
            keepRufusRunning = false; 
        }

        //private SoundEffect eatingSound;

        protected override void LoadContent()
        {
            base.LoadContent();

            // Specify the size of the frame for the sprite source rectangle
            // (individual sprite width/height) for all AnimationTextures
            // i.e. idle, running, jumping, special
            AdjustAllSpriteFrames(25, 23, 4);

            //eatingSound = Game.Content.Load<SoundEffect>("rufus-eating");

        }

        /*---------------------------------------------------------------------------
          Name:     SpecialMove
          Purpose:  Makes character do special move
          Receives: none
          Returns:  void
        ---------------------------------------------------------------------------*/
        protected override void SpecialMove()
        {

            // stuff is done in the base character class... all he does is run :/
        }

    }
}
